
import java.util.logging.Logger;

public class JDKLogging {
    public static void main(String[] args) {
        Logger logger=Logger.getGlobal();
        logger.info("开始处理...");
        logger.warning("内存耗尽...");
        logger.fine("ignore.");
        logger.severe("进程将结束...");
    }
}
